package com.hlxl.viewpoint.model.impl;

import com.hlxl.viewpoint.model.ViewPoint;
import com.hlxl.viewpoint.service.ViewPointLocalServiceUtil;

import com.liferay.portal.kernel.exception.SystemException;

/**
 * The extended model base implementation for the ViewPoint service. Represents a row in the &quot;vp_ViewPoint&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link ViewPointImpl}.
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see ViewPointImpl
 * @see com.hlxl.viewpoint.model.ViewPoint
 * @generated
 */
public abstract class ViewPointBaseImpl extends ViewPointModelImpl
    implements ViewPoint {
    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify or reference this class directly. All methods that expect a view point model instance should use the {@link ViewPoint} interface instead.
     */
    @Override
    public void persist() throws SystemException {
        if (this.isNew()) {
            ViewPointLocalServiceUtil.addViewPoint(this);
        } else {
            ViewPointLocalServiceUtil.updateViewPoint(this);
        }
    }
}
